package com.clear.honghefinance.biz.modules.system.member.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * <p>
 * 生成微信公众号二维码DTO
 * </p>
 */
@Getter
@Setter
public class GenerateMpRegCodeDTO {

    /**
     * 客户端id：此处用作标识，标记生成的二维码供谁使用
     */
    @ApiModelProperty(value = "客户端id")
    @NotBlank(message = "客户端id不能为空")
    @Pattern(regexp = "^[0-9A-Za-z]{6,32}$", message = "clientId非法")
    private String clientId;
}
